/*
 *  Copyright (C) 2011 Hatsites
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.myorg.ctm.etk.gui.swg.display.firstconfig;

import org.myorg.ctm.etk.gui.swg.display.firstconfig.button.*;
import java.awt.event.ActionListener;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JLabel;
import org.myorg.shr.gui.swg.util.logging.FileHandlerShr;
import org.myorg.shr.gui.swg.display.frame.FrmAbs;

/**
 *
 * @author Hatsites
 *
 * email: Hatsites_AT_gmail.com
 * ... please remove "_AT_" from the above string to get the right email address
 */

public class FrmFirstConfig extends FrmAbs {

    public FrmFirstConfig(ActionListener alr) throws Exception {
        super();

        this._lblWelcome_ = new JLabel("Bonjour et merci d'avoir choisi ettiket.");
        this._lblChoose_ = new JLabel("Chosissez votre type de configuration :");

        this._btnDefault_ = new BtnDefault(alr);
        this._btnQuick_ = new BtnQuick(alr);
        this._btnManual_ = new BtnManual(alr);

    }

    @Override
    public boolean init(){
        this.setResizable(false);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        this._lblWelcome_.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        this._lblChoose_.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(this._lblWelcome_, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)
                    .addComponent(this._lblChoose_, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(this._btnDefault_, 150, 150, 150)
                        .addGap(10,10,10)
                        .addComponent(this._btnQuick_, 150, 150, 150)
                        .addGap(10,10,10)
                        .addComponent(this._btnManual_, 150, 150,150)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(this._lblWelcome_)
                .addComponent(this._lblChoose_)
                .addGap(10, 10, 10)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(this._btnQuick_, 120, 120, 120)
                    .addComponent(this._btnDefault_, 120, 120, 120)
                    .addComponent(this._btnManual_, 120, 120, 120))
                .addContainerGap())
        );

        pack();
        return true;
    }
  
    final static private Logger _LOGGER_ = Logger.getLogger(FrmFirstConfig.class.getName());

    static
    {
        FrmFirstConfig._LOGGER_.addHandler(FileHandlerShr.s_getInstance());
    }

    private JButton _btnDefault_;
    private JButton _btnQuick_;
    private JButton _btnManual_;
    private JLabel _lblWelcome_;
    private JLabel _lblChoose_;



}
